package jdk8;
import java.util.*;
/**
 * @author oldliu
 * @since 1.0
 */
public class ListLambda {
    public static void main(String[] args) {
        List<String> list=new ArrayList<>();
        list.add("dog");
        list.add("pig");
        list.add("snake");
        list.add("element");
        //list.forEach(System.out::println);
        list.forEach(x->{
            x=x.toUpperCase();
            System.out.println(x);
        });
    }
}
